<template>
    <div>
        <h2>板块管理</h2>
    </div>
    <div>
        <el-row :gutter="24">
            <el-col :span="20">
                名字:<el-input v-model="input" style="width: 240px" placeholder="请输入" />
            </el-col>
            <el-col :span="2">
                <el-button>重置</el-button>
            </el-col>
            <el-col :span="2">
                <el-button type="primary" @click="search()">查询</el-button>
            </el-col>
        </el-row>
    </div>

    <el-row :gutter="24">
        <el-col :span="18">
            <span>公告</span>
        </el-col>
        <el-col :span="2">
            <el-button type="primary">
                <el-icon>
                    <Plus />
                </el-icon>
                新建
            </el-button>
        </el-col>
    </el-row>

</template>

<script setup>
import axios from 'axios';
// 调取列表
function Forumslist() {
    let per = 10
    let page = 1
    let token = localStorage.getItem("token")
    axios.get("http://localhost:1337/api/v1/admin/forum", {
        params: {
            per,
            page
        },
        headers: {
            token
        }
    }).then(r => {
        console.log(r.data);

    })
}
Forumslist()
</script>

<style></style>